import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home"
Vue.use(VueRouter);

const routes = [
  {
    path:"/",
    name:"home",
    component:Home
  },
  {
    name:"micircle",
    path:"/micircle",
    component:()=>import('../views/Micircle.vue'),
  },
  {
    path:"/photo",
    name:"photo",
    component:()=>import('../components/Micircle/Photo.vue')
  },
  {
    path:"/news",
    name:"news",
    component:()=>import('../components/Micircle/News.vue')
  },
  {
    path:"/mine",
    name:'mine',
    component: () => import('../views/Mine.vue')
  }, 
  {
    path: '/cart',
    name: 'cart',
    component: () => import('../views/Cart.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: ()=> import('../components/Login.vue')
  },
  {
    path:"/classify",
    name:"classify",
    component:()=>import('../views/Classify.vue')
  },
];

const router = new VueRouter({
  routes,
  mode: 'history',
});

export default router;
